package com.itmuch.demoprovider.ribbon;

import com.itmuch.demoprovider.feign.NodeFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SidecarTestController {
    @Autowired
    private NodeFeignClient nodeFeignClient;

    @GetMapping("/test-sidecar1")
    public String testSidecar1() {
        return this.nodeFeignClient.index();
    }

    @GetMapping("/test-sidecar2")
    public String testSidecar2() {
        return this.nodeFeignClient.xxx();
    }
}
